package com.ruoyi.web.core.wang.utils;
//Created by sam on 2018/11/26 9:46

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(description = "通用返回数据")
public class ResponseBean<T> {

        @ApiModelProperty(value = "返回码", dataType = "Integer", example = "200")
        private Integer code;

        @ApiModelProperty(value = "提示信息", dataType = "String", example = "成功")
        private String msg;

        @ApiModelProperty(value = "数据", dataType = "Object")
        private T data;

        public T getData() {
            return data;
        }

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        public void setData(T data) {
            this.data = data;
        }
}
